<script setup>

import { lifangti, change } from "../hooks/three.js";
import { onMounted } from "vue";
onMounted(() => {
  lifangti();
});
//控制3D模型大小
function plus() {
  change(1); //调用hook内部方法实现立方体变化
}
</script>

<template>
  <button @click="plus">放大缩小</button>
  <div id="webgl" style="margin-top: 10px; margin-left: 100px"></div>
</template>

<style></style>
